package com.msgserver.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Employee
 *
 */
@Entity

public class Employee extends VO implements Serializable {

	
	private static final long serialVersionUID = 1L;

	public Employee() {
		super();
	}
	
	private String phoneNumber;

	
	private Set<EmployeeGroup> groups = new HashSet<EmployeeGroup>();

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}



	@ManyToMany(mappedBy = "employee")
	public Set<EmployeeGroup> getGroups() {
		return groups;
	}

	public void setGroups(Set<EmployeeGroup> groups) {
		this.groups = groups;
	}
	
   
}
